package com.lanxin.stu.mapstruct;

import com.lanxin.stu.dto.ClassesDTO;
import com.lanxin.stu.entity.Classes;
import com.lanxin.stu.vo.ClassesVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author cyh
 * @create 2025-09-17 9:22
 */
@Mapper(componentModel = "spring")
public interface ClassesMapStruct {

    ClassesMapStruct INSTANCE = Mappers.getMapper(ClassesMapStruct.class);

    Classes toEntity(ClassesDTO classesDTO);
    ClassesVO toVO(Classes classes);
    List<ClassesVO> toListVO(List<Classes> classes);
}
